import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import axios from 'axios'
import filters from './filter'
import './assets/fonts/iconfont.css'

Object.keys(filters).forEach(k => {
  　　Vue.filter(k, filters[k])
  })

Vue.config.productionTip = false

Vue.prototype.$http = axios
axios.defaults.baseURL = 'http://127.0.0.1:8001/api/v1/book/'
// axios.interceptors.request.use(config => {
//   // console.log(config)
//   config.headers.Authorization = window.sessionStorage.getItem('token')
  
//   // 在最后必须 return config
//   return config
// })
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
